﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RBAC.Domain.SalesManage
{
    /// <summary>
    /// 销售订单实体
    /// </summary>
    [Table("SalesOrder")]
    public class SalesOrder:BaseEntity
    {
        /// <summary>
        /// 单据编码
        /// </summary>
        public string? OrderCode { get; set; }

        /// <summary>
        /// 单据类型：业务订单、计划生产、预计
        /// </summary>
        public string? OrderType { get; set; }

        /// <summary>
        /// 单据日期
        /// </summary>
        public DateTime? OrderDate { get; set; }

        /// <summary>
        /// 单据状态：开立/已审批
        /// </summary>
        public string? OrderStatus { get; set; }

        /// <summary>
        /// 审批日期
        /// </summary>
        public DateTime? AuditDate { get; set; }

        /// <summary>
        /// 审批员
        /// </summary>
        public string? Auditor { get; set; }

        /// <summary>
        /// 客户名称
        /// </summary>
        public string? CustomerName { get; set; }

        /// <summary>
        /// 收货人
        /// </summary>
        public string? Receiver { get; set; }

        /// <summary>
        /// 电话
        /// </summary>
        public string? Phone { get; set; }

        /// <summary>
        /// 地址
        /// </summary>
        public string? Address { get; set; }

        /// <summary>
        /// 目的国家
        /// </summary>
        public string? DestinationCountry { get; set; }

        /// <summary>
        /// 业务类型
        /// </summary>
        public string? BusinessType { get; set; }

        /// <summary>
        /// 业务状态：正常/暂停/取消
        /// </summary>
        public string? BusinessStatus { get; set; }

        /// <summary>
        /// 销售部门
        /// </summary>
        public string? SalesDepartment { get; set; }

        /// <summary>
        /// 销售人员Id
        /// </summary>
        public long? SalesPersonId { get; set; }
        /// <summary>
        /// 销售人员
        /// </summary>
        public string? SalesPerson { get; set; }

        /// <summary>
        /// 销售类型：国内品牌/国外品牌/代理
        /// </summary>
        public string? SalesChannel { get; set; }

        /// <summary>
        /// 供货方式：自产/采购/委外
        /// </summary>
        public string? SupplyMode { get; set; }

        /// <summary>
        /// 付款条件：账期、预付款、月结
        /// </summary>
        public string? PaymentTerms { get; set; }

        /// <summary>
        /// 交付日期
        /// </summary>
        public DateTime? DeliveryDate { get; set; }

        /// <summary>
        /// 交期状态：确认/未确认/延期
        /// </summary>
        public string? DeliveryStatus { get; set; }

        /// <summary>
        /// 合同号
        /// </summary>
        public string? ContractNo { get; set; }

        /// <summary>
        /// 备注信息
        /// </summary>
        public string? Remark { get; set; }
    }
}
